package com.seata.demo.order.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

// AT模式和XA模式调用
@FeignClient(name = "storage-service")
public interface StorageFeignClient {

    @PostMapping("/storage/deduct")
    void deduct(@RequestParam("commodityCode") String commodityCode, 
               @RequestParam("count") Integer count);
}
